/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package helper.tx.tta;

import entity.tx.Advertisement;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Lu Xiaodi
 */
public class Helper_PIPAdModel implements Serializable{
    public Advertisement ads;
    public List<Helper_PIPAd> adsRecords; 
    
    public Helper_PIPAdModel(){
        adsRecords = new ArrayList<Helper_PIPAd>();
    }
    
    public Helper_PIPAdModel(Advertisement ad){
        this. ads = ad;
        this.adsRecords = new ArrayList<Helper_PIPAd>();
    }
    
    public Helper_PIPAdModel(Advertisement ads, List<Helper_PIPAd>adsRecords){
        this.ads = ads;
        this.adsRecords = adsRecords;
    }

    public Advertisement getAds() {
        return ads;
    }

    public void setAds(Advertisement ads) {
        this.ads = ads;
    }

    public List<Helper_PIPAd> getAdsRecords() {
        return adsRecords;
    }

    public void setAdsRecords(List<Helper_PIPAd> adsRecords) {
        this.adsRecords = adsRecords;
    }
    
    public void addAdRecord(Helper_PIPAd aRecord){
        this.adsRecords.add(aRecord);
    }
}
